// 自动生成模板ActivityInfo
package autocode

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
	"time"
)

// ActivityInfo 结构体
// 如果含有time.Time 请自行import time包
type ActivityInfo struct {
	global.GVA_MODEL
	UserName     string     `json:"userName" form:"userName" gorm:"column:user_name;comment:用户名字;size:50;"`
	OpenId       string     `json:"openId" form:"openId" gorm:"column:open_id;comment:用户openID;size:100;"`
	UserId       *int       `json:"userId" form:"userId" gorm:"column:user_id;comment:用户id;size:19;"`
	Marks        *int       `json:"marks" form:"marks" gorm:"column:marks;comment:活动牛奶滴数;size:10;"`
	Time         *int       `json:"time" form:"time" gorm:"column:time;comment:参与的时长;size:10;"`
	CreateTime   *time.Time `json:"createTime" form:"createTime" gorm:"column:create_time;comment:参与时间;"`
	ActivityType *int       `json:"activityType" form:"activityType" gorm:"column:activity_type;comment:活动类型（1-滑雪；2-牧场牛奶）;size:10;"`
	StartData *time.Time       `form:"startData"`
	EndData *time.Time       `form:"endData"`
}

// TableName ActivityInfo 表名
func (ActivityInfo) TableName() string {
	return "activity_info"
}
